package com.opennews.openplatform.familyexpenseapi.dto.income.expense.detail.type

import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.Size

@JsonIgnoreProperties(ignoreUnknown = true)
open class IncomeExpenseDetailTypeWithNameDto : BaseIncomeExpenseDetailTypeDto() {
    @field:NotBlank(message = "name can't be blank")
    @field:Size(max = 50, message = "name must be at most 50 characters")
    lateinit var name: String
}